﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 入库单
    /// </summary>
    public class VInbound : BaseVModel
    {
        private string _inboundNo = string.Empty;
        private string _warehouseName = string.Empty;
        private string _warehouseCode = string.Empty;
        private string _inboundTypeNo = string.Empty;

        #region Public Property

        ///<Summary>
        /// 入库类型
        ///</Summary>
        public Enum.InboundType InboundType { get; set; }

        ///<Summary>
        /// 入库类型单号
        ///</Summary>
        public string InboundTypeNo
        {
            get { return string.IsNullOrWhiteSpace(_inboundTypeNo) ? string.Empty : _inboundTypeNo; }
            set { _inboundTypeNo = value; }
        }

        ///<Summary>
        /// 入库单号
        ///</Summary>
        public string InboundNo
        {
            get { return string.IsNullOrWhiteSpace(_inboundNo) ? string.Empty : _inboundNo; }
            set { _inboundNo = value; }
        }

        ///<Summary>
        /// 仓库代码
        ///</Summary>
        public string WarehouseCode
        {
            get { return string.IsNullOrWhiteSpace(_warehouseCode) ? string.Empty : _warehouseCode; }
            set { _warehouseCode = value; }
        }

        ///<Summary>
        /// 仓库名称
        ///</Summary>
        public string WarehouseName
        {
            get { return string.IsNullOrWhiteSpace(_warehouseName) ? string.Empty : _warehouseName; }
            set { _warehouseName = value; }
        }

        ///<Summary>
        /// 包列表
        ///</Summary>
        public List<VInboundProduct> Products { get; set; } = new List<VInboundProduct>();

        ///<Summary>
        /// 包装列表
        ///</Summary>
        public List<VPack> Packs { get; set; } = new List<VPack>();
        #endregion
    }
}
